package com.and9.mchen.mcmusic.entity.menum;

import java.util.EnumSet;

public enum SingerType{

	
	MALE_SINGER("Male Singer"),
	FEMALE_SINGER("Female Singer"),
	GROUP("Group");
	
	private String value;
	 
	public String getValue(){
   	 	return this.value;
    }
    
	private SingerType(String value){
		this.value = value;
    }
	
	public static  SingerType getSingerTypeByValue(String value){
		
		EnumSet<SingerType> enumSet=EnumSet.allOf(SingerType.class);
		
		for(SingerType singerType : enumSet){
			if(singerType.getValue().equals(value)){
				return singerType;
			}
		}
		
		return null;
	}
	
}
